import { request } from "@ruifox-cms/utils";

//获取系统配置
export function selectsystem() {
  return request({
    url: `/comment/api/system/select`,
    method: "get",
  });
}

//更新系统配置
export function updatesystem(data) {
  return request({
    url: "/comment/api/system/update",
    method: "post",
    data,
  });
}
// 网络图片生成
export function checkImages(data) {
  return request({
    url: "/content/imageUpload/checkImages",
    method: "post",
    data,
  });
}

//获取当前功能设置

export function selectfunction() {
  return request({
    url: `/comment/api/function/select`,
    method: "get",
  });
}
// 更新功能设置
export function updateFunction(data) {
  return request({
    url: "/comment/api/function/update",
    method: "post",
    data,
  });
}
